package com.zzl.study.auth.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: zhangzl
 * @date: 2023/12/14 19:32
 * @version: 1.0
 * @description: 服务提供方API接口
 */
@FeignClient(name = "micro-service-provider", path = "/provider")
public interface ProviderApi {

    /**
     * 打招呼
     *
     * @param name 姓名
     * @return 打招呼
     */
    @GetMapping("/hello")
    String hello(@RequestParam("name") String name);

}
